<tagLib name="html"/>
<include file="./Index/Tpl/Home/default/public/header.htm" />
<link href="__PUBLIC__/css/inn-adm-base.css" type="text/css" rel="stylesheet" />
<style type="text/css">
.sjht_xx { padding-top:0px; margin:0; font-size:12px; color:#000; line-height:15px; }
.sjht_fd table { border-top:2px solid #35AFC1; border-left:1px solid #e0e0e0; text-align:center; }
.sjht_fd table td { border-right:1px solid #e0e0e0; border-bottom:1px solid #e0e0e0; padding:5px; }
.sjht_fd table .title { height:33px; background:url(__PUBLIC__/images/tr_bg.png); }
.sjht_fd table .title td { padding:0px; }
.sjht_fd a { color:#0069CA; }
</style>
<script type='text/javascript'>
function reply(msg_id) {
    var content = prompt('请输入回复内容：');
    if(content != null && content != '') {
        alert('回复功能暂未实现！');
    }
}
function formValidate() {
	 if( $('select[name=BatMethod]').val() == 0 ) {
		 alert('请选择您要执行的操作');
		 return false;
	 } else if(confirm('是否确定执行所选操作？')) {
		 return true;
	 } else
	 	return false;
}
function checkAll(name) {
	$(':checkbox[name="'+name+'"]').attr('checked',true);
}
function reverseCheck(name) {
	checked = $(':checked[name="'+name+'"]');
	checkAll(name);
	checked.attr('checked',false);
}
function uncheckAll(name) {
	$(':checkbox[name="'+name+'"]').attr('checked',false);
}
</script>
<div class="content">
  <include file="public:innleft" />
  <div class="sjht_right">
    <div class="sjht_xx">
      <div class="sjht_fd">
        <form action='__KZURL__/message/batch' method='post' onsubmit="return formValidate();">
          <table width="100%" cellspacing="0" cellpadding="0">
            <tr class="title">
              <td>&nbsp;</td>
              <td width='200'>客栈名称</td>
              <td width='60'>会员</td>
              <td>留言内容</td>
              <td width='80'>时间</td>
              <td width='40'>显示</td>
              <td width='40'>操作</td>
            </tr>
            <volist name='messageList' id='vo'>
              <tr>
                <td><input type='checkbox' name='BatKey[]' value='<{$vo.msg_id}>' /></td>
                <td><{$myInn[$vo[inn_id]]}></td>
                <td><{$vo.uid}></td>
                <td><{$vo.content}></td>
                <td><{$vo.add_time|date='Y-m-d H:i:s',###}></td>
                <td><eq name='vo[display]' value='1212'>
                        <span style='color:green'>是</span>
                    <else/>
                        <span style='color:red'>否</span>
                    </eq>
                </td>
                <td><input type='button' onclick='reply(<{$vo.msg_id}>)' value='回复' /></td>
              </tr>
            </volist>
            <tr>
              <td colspan='7'>
                <a href="javascript:;" onclick="checkAll('BatKey[]')">全选</a>
                <a href="javascript:;" onclick="reverseCheck('BatKey[]')">反选</a>
                <a href="javascript:;" onclick="uncheckAll('BatKey[]')">取消</a>
                选中项:
                <select name='BatMethod'>
                  <option value='0'>----</option>
                  <option value='show'>显示</option>
                  <option value='hide'>隐藏</option>
                  <option value='delete'>删除</option>
                </select>
                <input type='submit' value='确定'></td>
            </tr>
          </table>
        </form>
      </div>
    </div>
  </div>
</div>
<include file='./Index/Tpl/Home/default/public/footer.htm' />